// src/main/java/com/yin/waimai/dto/OrderDTO.java
package com.yin.waimai.dto;

import com.yin.waimai.enums.OrderStatus; // 导入你的枚举
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用于API响应的订单信息DTO
 */
@Data
public class OrderDTO {
    private String id;
    private String orderNumber;
    private AddressDTO shipperInfo; // 返回DTO而不是原始模型
    private AddressDTO recipientInfo;
    private String itemDescription;
    private Double weight;
    private BigDecimal calculatedFee;
    private OrderStatus status;
    private LocalDateTime creationTime;
    private LocalDateTime pickupTime;
    private LocalDateTime deliveryTime;
    private String deliveryPersonId;
    // 可以添加更多需要展示给前端的字段
}